﻿using Advanced.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 用户表
    /// </summary>
    public partial class TUser
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [Title(Titile = "用户名")]
        public string UserName { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Pwd { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string HeadShot { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 性别：1-男；2-女
        /// </summary>
        public int? Gender { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string MobilePhone { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 创建用户Id
        /// </summary>
        public int? CreateUserId { get; set; }
        /// <summary>
        /// 创建用户名
        /// </summary>
        public string CreateUserName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 修改用户Id
        /// </summary>
        public int? ModifyUserId { get; set; }
        /// <summary>
        /// 修改用户名
        /// </summary>
        public string ModifyUserName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyDate { get; set; }
        /// <summary>
        /// 工号
        /// </summary>
        public string JobNo { get; set; }
        /// <summary>
        /// 签名
        /// </summary>
        public string Signature { get; set; }
        /// <summary>
        /// 用户密钥
        /// </summary>
        public string UserSecret { get; set; }
        /// <summary>
        /// 是否修改密码
        /// </summary>
        public bool? IsModifyPwd { get; set; }
        /// <summary>
        /// 部门Id
        /// </summary>
        public int? DepartmentId { get; set; }
        public bool? IsSeeOnlySelfData { get; set; }
        [NotMapped]
        public string Token { get; set; }
        /// <summary>
        /// 班次Id
        /// </summary>
        [MaxLength(2)]
        public string? ShiftCode { get; set; }
        /// <summary>
        /// 班组Id
        /// </summary>
        [MaxLength(2)]
        public string? ClassCode { get; set; }
        /// <summary>
        /// 交班时间
        /// </summary>
        public DateTime? ShiftTime { get; set; }

        [NotMapped]
        /// <summary>
        /// 拣选名称
        /// </summary>
        public string SelectPositionName { get; set; }

        [NotMapped]
        /// <summary>
        /// 拣选编码
        /// </summary>
        public string SelectPositionCode { get; set; }
    }
}
